import request from '@/utils/request'

// 客户属性列表
export const attrList = (params: any) => {
  return request({
    url: '/scrm-api/console/clue/attr/list',
    params
  })
}
// 新建线索属性
export const attrCreate = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/attr/create',
    method: 'POST',
    data
  })
}
// 编辑线索属性
export const attrEdit = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/attr/edit',
    method: 'POST',
    data
  })
}
// 删除线索属性
export const attrDel = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/attr/del',
    method: 'POST',
    data
  })
}
// 编辑属性状态
export const updateStatus = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/attr/update/status',
    method: 'POST',
    data
  })
}
// 高级设置
export const attrAdvanced = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/attr/advance/set',
    method: 'POST',
    data
  })
}
// 高级设置
export const advancedInfo = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/attr/advanced/info',
    method: 'POST',
    data
  })
}
export const attrSort = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/attr/sort',
    method: 'POST',
    data
  })
}
